package com.example.demo.entity;
import com.baomidou.mybatisplus.annotation.TableName;

//学生表，注意表名和字段要和数据库保持一致
@TableName(value = "student")
public class Student {
    private int id;
    private String name;
    private String major;
    private float grade;
    private String student_class;
    private String address;
    private String phone;
    private String email;

    public Student(int id, String name, String major, Float grade, String student_class, String address, String phone, String email) {
        this.id = id;
        this.name = name;
        this.major = major;
        this.grade = grade;
        this.student_class = student_class;
        this.address = address;
        this.phone = phone;
        this.email = email;
    }

    public Student(){ }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public float getGrade() {
        return grade;
    }

    public void setGrade(float grade) {
        this.grade = grade;
    }

    public String getStudent_class() {
        return student_class;
    }

    public void setStudent_class(String student_class) {
        this.student_class = student_class;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
